# 装饰器带参数


class Wapper:

    def __init__(self, *args):
        self.args = args

    def __call__(self, func):
        self.func = func

        def realfunc(*args):
            print('call.........', args)
            self.func(*args)

        return realfunc


@Wapper
def test(a, b, c):
    print(a + b + c)


test(1, 2, 3)
